#ifndef CUSTOMTIMEVALUEAXIS_H
#define CUSTOMTIMEVALUEAXIS_H
#include <QValueAxis>
#include <QObject>

class CustomTimeValueAxis:public QValueAxis
{
    Q_OBJECT
public:
    explicit CustomTimeValueAxis(int pointsPerSecond = 100, QObject *parent = nullptr);
protected:
    QString tickLabel(qreal value, const QString &format);

private:
    int _pointsPerSecond; // 每秒对应的点数
};

#endif // CUSTOMTIMEVALUEAXIS_H
